import request from '@/utils/request'

export function getPaymentOrders(query) {
  let url = '/api/payment-orders'
  return request({
    url: url,
    method: 'get',
    params: query
  })
}

export function pay(id) {
  let url = '/api/payment-orders/' + id + '/pay'
  return request({
    url: url,
    method: 'post'
  })
}

export function closePaymentOrder(id) {
  let url = '/api/payment-orders/' + id + '/close'
  return request({
    url: url,
    method: 'post'
  })
}

